package com.itheima.test5;

import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.temporal.Temporal;

public class Test {
    public static void main(String[] args) {
        LocalTime start = LocalTime.of(6, 30, 0);
        LocalTime end = LocalTime.of(22, 18, 55);
        Duration between = Duration.between(start, end);
        long seconds = between.getSeconds();
        System.out.println("6点30分00秒 和22点18分55秒之间间隔了" + seconds + "秒");
    }
}
